
# 标注状态状态枚举
class AnnotationStatus:
    UNASSIGNED = "0"
    ASSIGNED = "1"
    VIEWED = "2"  # 
    COMPLETED = "3"
    REVIEWED = "4"
    ERROR = "5"
    
    @classmethod
    def get_symbol_by_desc(cls, desc):
        desc_to_symbol = {
            "0": "☐",
            "1": "☑",
            "2": "👁️",
            "3": "√",
            "4": "✔",
            "5": "×"
        }
        return desc_to_symbol.get(str(desc), "?")

    
# 评论枚举状态枚举
class CommentStatus:
    ACCRATE = "正确"
    UNASSIGNED = "无标签"
    INCOMPLETE = "目标不完整"
    INCORRECT = "标签不正确"
    NONSTANDARD = "无标准"
    @classmethod
    def get_symbol_by_desc(cls, desc):
        desc_to_symbol = {
            "正确": "✔",
            "无标签": "☐",
            "目标不完整": "⋯",
            "标签不正确": "×",
            "无标准": "⚠"
        }
        return desc_to_symbol.get(desc, "?")
    
# 用户角色枚举
class UserRole:
    ANNOTATOR = "标注员"
    EMEND = "修正员" # emend
    ADMIN = "管理员"
